//
//  WuLiuItemTableViewCell.m
//  HuaLang
//
//  Created by iking on 2018/3/9.
//  Copyright © 2018年 iking. All rights reserved.
//

#import "WuLiuItemTableViewCell.h"

@implementation WuLiuItemTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpUI];
    }
    return self;
}
- (void)setUpUI
{
    self.leftLB = [UILabel labelWithText:@"物流公司" textColor:UIColorWithRGB(51, 51, 51) fontSize:16];
    [_leftLB sizeToFit];
    [self addSubview:_leftLB];
    [_leftLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.left.equalTo(self).offset(rateWidth(35));
    }];
    
    self.rightLB = [UILabel labelWithText:@"邦德物流" textColor:UIColorWithRGB(102, 102, 102) fontSize:16];
    [_rightLB sizeToFit];
    [self addSubview:_rightLB];
    [_rightLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.left.equalTo(_leftLB.mas_right).offset(rateWidth(44));
    }];
    
    self.line = [[UIView alloc] init];
    _line.backgroundColor = UIColorWithRGB(240, 240, 240);
    [self addSubview:_line];
    [_line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.right.equalTo(self);
        make.left.equalTo(self).offset(rateWidth(32));
        make.height.equalTo(@(0.5));
    }];
}

@end
